<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var Txuprice=245;
			var Txunumber=2;
			var TAmount=Txuprice*Txunumber;
			var wangXieprice=570;
			var wangXienumber=1;
			var wangXieAmount=wangXieprice*wangXienumber;
			var wangPaiprice=320;
			var wangPainumber=1;
			var wangPaiAmount=wangPaiprice*wangPainumber;
			var discount=8;
			var xiaoFeiAmount=(TAmount+wangXieAmount+wangPaiAmount)*0.8;
			var shiJiPay=1500;
      		var Smallchange=shiJiPay-xiaoFeiAmount;
			document.write("<table align='center' width='300'>");
			document.write("<tr>");
			document.write("<td colspan='4' align='center'>*******消费清单*******</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>购买物品</td>");
			document.write("<td>单价</td>");
			document.write("<td>数量</td>");
			document.write("<td>金额</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>T恤</td>");
			document.write("<td>&yen;"+Txuprice+"</td>");
			document.write("<td>"+Txunumber+"</td>");
			document.write("<td>"+TAmount+"</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>网球鞋</td>");
			document.write("<td>&yen;"+wangXieprice+"</td>");
			document.write("<td>"+wangXienumber+"</td>");
			document.write("<td>"+wangXieAmount+"</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>网球拍</td>");
			document.write("<td>&yen;"+wangPaiprice+"</td>");
			document.write("<td>"+wangPainumber+"</td>");
			document.write("<td>"+wangPaiAmount+"</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td colspan='4'>&nbsp</td>");
			document.write("</tr>");
			document.write("<td>折扣:</td>");
			document.write("<td>"+discount+"折"+"</td>");
			document.write("</tr>");
			document.write("</tr>");
			document.write("<td>消费总金额:</td>");
			document.write("<td>&yen;"+xiaoFeiAmount+"</td>");
			document.write("</tr>");
			document.write("</tr>");
			document.write("<td>实际交费:</td>");
			document.write("<td>&yen;"+shiJiPay+"</td>");
			document.write("</tr>");
			document.write("</tr>");
			document.write("<td>找零:</td>");
			document.write("<td>&yen;"+Smallchange+"</td>");
			document.write("</tr>");
			document.write("</table>");
		</script>
	</body>
</html>
